package com.augurit.common.constant;

import com.augurit.common.base.extmodel.inner.MenuLinkTreeNode;


public class OrgConstant {
	
	/**
	 * 斜杠
	 */
	public static final String STRING_SEPARATOR_MODULEPATH = " / ";
	
	/**
	 * 顿号，多个字符串的分隔符
	 */
	public static final String STRING_SEPARATOR_D = "、";

	/**
	 * 要预加载的菜单层次。注意，考虑到性能问题，目前预加载菜单层次最大为3
	 */
	public static final int INDEX_MAX_LOAD_MENU_LEVEL = 3;
	
	/**
	 * 本地应用工程的标识，用于菜单图标地址、功能地址等地方，当访问这个标识时自动转换为本地应用名称
	 */
	public static final String LOCAL_APP_FLAG = "${ctx}";
	public static final String LOCAL_APP_FLAG_FOR_REPLACE = "/\\$\\{ctx\\}/";
	
	//性别
	public static final String SEX_MALE = "M";
	public static final String SEX_FEMALE = "F";
	
	//系统首页默认配置
	public static final String HOMEPAGE_CODE_DEFAULT = "tree";
	public static final String HOMEPAGE_NAME_DEFAULT = "默认首页";
	public static final String HOMEPAGE_MODEL_NAME_DEFAULT = MenuLinkTreeNode.class.getSimpleName();
	
	/**
	 * 内置系统管理员角色
	 */
	public static final String ROLE_ADMIN_CODE = "aosadmin";
	public static final String ROLE_ADMIN_NAME = "系统管理员";
	
	public static final String TWO = "2";
	public static final String ONE = "1";
	public static final String ZERO = "0";
	
	public static final int NUM_0 = 0;
	public static final int NUM_1 = 1;
	
	public static final String PARTY_TYPE_ROOT = "ROOT";
	public static final String PARTY_TYPE_ORG = "ORG";
	public static final String PARTY_TYPE_GROUP = "GROUP";
	public static final String PARTY_TYPE_POSITION = "POSITION";
	public static final String PARTY_TYPE_USER = "USER";
	
	public static final String MSG_RELOGIN = "请重新登录系统！";
	public final static String MSG_INVALID_USER = "用户名或密码错误，请重新输入！";
	
	//机构数据字典
	public static final String SYS_CODE_ORG_TYPE = "AOS_ORG_TYPE";
	public static final String SYS_CODE_ORG_STATUS = "AOS_ORG_STATUS";
	public static final String SYS_CODE_ORG_GRADE = "AOS_ORG_DEGREE";
	
	//工作组数据字典
	public static final String SYS_CODE_GROUP_STATUS = "ABF_GROUPSTATUS";
	public static final String SYS_CODE_GROUP_TYPE = "ABF_GROUPTYPE";
	
	//用户数据字典
	public static final String SYS_CODE_USER_POSITION = "AOS_USER_POSITION";
	public static final String SYS_CODE_USER_SEX = "AOS_USER_SEX";
	
	//应用、模块、功能数据字典
	public static final String SYS_CODE_APP_TYPE = "AOS_APP_TYPE";
	public static final String SYS_CODE_MODULE_TYPE = "AOS_MODULE_TYPE";
	public static final String SYS_CODE_FUNCTION_TYPE = "AOS_FUNCTION_TYPE";
	
	//是否叶子节点。0为非叶子节点，1为叶子节点
	public static final String LEAF_NODE = "1";
	public static final String NOT_LEAF_NODE = "0";
}
